<?php
/**
 * Global Configuration Override
 *
 * You can use this file for overridding configuration values from modules, etc.
 * You would place values in here that are agnostic to the environment and not
 * sensitive to security.
 *
 * @NOTE: In practice, this file will typically be INCLUDED in your source
 * control, so do not include passwords or other sensitive information in this
 * file.
 */

return array(
    
	// Doctrine config
	'doctrine' => array(	
		'connection' => array(
			'orm_default' => array(
				'driverClass' => 'Doctrine\DBAL\Driver\PDOMySql\Driver',
				'params' => array(
					'host'     => 'localhost',
					'port'     => '3306',
					'user'     => 'root',
					'password' => 'ophthalamia',
					'dbname'   => 'vsframework',
				)
			)
		)
	),
	
    'service_manager' => array(
        'factories' => array(
            //'Zend\Db\Adapter\Adapter' => 'Zend\Db\Adapter\AdapterServiceFactory',
        	'Navigation' => 'Zend\Navigation\Service\DefaultNavigationFactory',
        ),
    ),
		
	'router' => array(
		'routes' => array(
			'home' => array(
				'type' => 'Zend\Mvc\Router\Http\Literal',
				'options' => array(
					'route'    => '/',
					'defaults' => array(
						'__NAMESPACE__' => 'Application\Front',
						'controller'    => 'Index',
						'action'        => 'index',
					),
				),
			),
			'default' => array(
				'type' => 'Segment',
				
				/* */
				'options' => array(
					'route'    => '/[:controller[/:action]]',
					'constraints' => array(
						'controller' => '[a-zA-Z][a-zA-Z0-9_-]*',
						'action'     => '[a-zA-Z][a-zA-Z0-9_-]*',
					),
					'defaults' => array(
						'__MODULE_ROUTE__' => 'FRONT',
						'controller' => 'Application\Front\Index',
						'action' => 'index'
					),
				),
				 
				
			),
			/* */
			'admin' => array(
				'type' => 'Segment',
				'options' => array(
					'route'    => '/admin[/:module[/:controller[/:action]]]',
					'constraints' => array(
						'module' => '[a-zA-Z][a-zA-Z0-9_-]*',
						'controller' => '[a-zA-Z][a-zA-Z0-9_-]*',
						'action'     => '[a-zA-Z][a-zA-Z0-9_-]*',
					),
					'defaults' => array(
						'__MODULE_ROUTE__' => 'ADMIN',
						//'controller' => 'Application\Admin\Index',
						'action' => 'index'
					),
				),
			),
			 
		)
	),
);